home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / MiniclipsTetris.swf / scripts / DefineButton2_96 / BUTTONCONDACTION on(keyPress p).as < prev    next >
Encoding:
Text File  |  2005-08-04  |  290 b   |  14 lines

  1. on(keyPress "p"){
  2.    if(gameRunning and !gamePaused)
  3.    {
  4.       gamePaused = true;
  5.       stopAllSounds();
  6.       Text3D.write("PAUSED!",105,135);
  7.    }
  8.    else if(gameRunning and gamePaused)
  9.    {
  10.       Music.gotoAndPlay(Music._currentframe - 1);
  11.       gamePaused = false;
  12.    }
  13. }
  14.